home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 1996 May / cd joy 71No13.iso / pc / demos / eurosoc / source / euro_win.cpp < prev    next >
C/C++ Source or Header  |  1996-03-14  |  888b  |  41 lines

  1. #include <i86.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <stdio.h>
  5.  
  6. #include "eurodefs.h"
  7. #include "euro_fxd.h"
  8. #include "euro_sym.h"
  9. #include "euro_def.h"
  10. #include "euro_var.h"
  11.  
  12. //********************************************************************************************************************************
  13.  
  14. void    TestForWindows95()
  15.     {
  16.     //
  17.     union REGS regs;
  18.     struct SREGS sregs;
  19.  
  20.     memset(&sregs,0,sizeof(sregs));        //clr sregs
  21.     regs.w.ax=0x1600;
  22.     int386x(0x2F,®s,®s,&sregs);
  23.  
  24.     w95=regs.w.ax & 0xff;
  25.  
  26.     if (w95==3 || w95==4)
  27.         {
  28.         //running in windows 95!!!
  29.             w95 = Yes;
  30.                   printf("˛ Running windows 95 version.\n");
  31.         }
  32.     else
  33.         {
  34.             w95 = No;
  35.                 printf("˛ Running DOS version.\n");
  36.         }
  37.     }
  38.  
  39. //********************************************************************************************************************************
  40.  
  41.